<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<portlet:defineObjects />

<portlet:actionURL var="getinformationcontactURL">
	<portlet:param name="action" value="getinformationcontact"/>
</portlet:actionURL>


<h1>Quản Lí Thông Tin Liên Hệ</h1>
<table border="1" cellpadding="20px">
	<tr>
		<th>STT</th>
		<th>Họ Tên</th>
		<th>Email</th>
		<th>Xem Chi Tiet</th>
	</tr>
	<c:forEach items="${listContact}" varStatus="index" var="e">
	
	<tr>
		<td>${index.count}</td>
		<c:if test="${e.isRead==0}"><td style="font-weight: bold;">${e.fullName}</td></c:if>
		<c:if test="${e.isRead==1}"><td>${e.fullName}</td></c:if>
		<c:if test="${e.isRead==0}"><td style="font-weight: bold;">${e.email}</td></c:if>
		<c:if test="${e.isRead==1}"><td>${e.email}</td></c:if>
		<td>
			<form action="${getinformationcontactURL}" method="post">
					<input type="text" name="<portlet:namespace/>contactID" value="${e.contactID}" style="display: none;">
					 <input type="submit" value="Click here">
			</form>
		</td>
	<tr>
	</c:forEach>
</table>
